package com.lxj.student_security.service;

import com.lxj.student_security.common.CommonResult;
import com.lxj.student_security.entity.Role;
import com.lxj.student_security.entity.RolePermission;
import com.lxj.student_security.entity.vo.RolePermissionRelation;

public interface RoleService {
    CommonResult findAll(Role role);

    CommonResult delete(Integer[] id);

    CommonResult edit(Role role);

    CommonResult add(Role role);

    CommonResult addPs(RolePermission rolePermission);

    CommonResult findById(Integer id);

    CommonResult findByRoleId(Integer id);

    CommonResult addPermission(Integer[] ids,Integer id);

    CommonResult deletePermission(Integer[] ids,Integer id);

    CommonResult searchById(Integer id);

    CommonResult searchAll();
}
